import request from '@/utils/request';
import Cookies from 'js-cookie';


export function getRecommendSheet() {
  return request('/api/recommend/resource',{}, 'get', {
    header: {
      authorization: Cookies.get('myCo')
    }
  })
}

// 登录写死，来不及做了
export function login() {
  return request('/api/login/cellphone?phone=18668130178&password=1234qwe')
}
// http://localhost:3000/register/cellphone?phone=18668130178&password=1234qwe&captcha=7788&nickname=woshishab2234545

export function getRecommendSongs() {
  return request('/api/recommend/songs',{}, 'get', {
    header: {
      authorization: Cookies.get('myCo')
    }
  })
}
